<!--
 * @Author: fisher
 * @Date: 2023-08-01 18:00:48
 * @LastEditTime: 2024-01-10 10:01:45
 * @LastEditors: fisher
 * @Description: 
 * @FilePath: \front-end-template\src\modules\DataManage\templates\components\whaleHouseDialog.vue
-->
<template>
  <div class="mask">
    <div class="content">
      <div class="header">
        <span>细节查看</span>
        <img src="@/assets/img/dataManagement/close.webp" alt="close" @click="close" />
      </div>
      <div class="form">
        <div class="form_item">
          <span>参数说明：</span>
          <input v-model="Jobparams" placeholder="" type="text" />
        </div>
        <div class="form_item">
          <span>日志描述：</span>
          <textarea v-model="LogDescription" placeholder="" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { getLogs } from '../api.js'
export default {
  components: {},
  props: {
    jobData: {
      type: Object,
      default() {
        return {}
      }
    }
  },
  data() {
    return {
      Jobparams: '',
      LogDescription: ''
    }
  },
  computed: {},
  mounted() {
    getLogs(this.jobData.id).then((res) => {
      this.Jobparams = this.jobData.params
      this.LogDescription = res.data
    })
  },
  destroyed() {},
  methods: {
    cancel() {
      this.close()
    },
    close() {
      this.$parent.logsVisiable = false
    }
  }
}
</script>

<style lang="scss" scoped>
.mask {
  width: 100%;
  height: 100%;
  background: rgba($color: #00152a, $alpha: 0.5);
  .content {
    position: absolute;
    top: 45%;
    left: 50%;

    width: 1600px;
    height: 900px;
    background: #fff;
    box-shadow: 0 12px 48px 16px rgba(0, 0, 0, 0.03), 0 9px 28px 0 rgba(0, 0, 0, 0.05),
      0 6px 16px -8px rgba(0, 0, 0, 0.08);
    transform: translate(-50%, -50%);
    .header {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 40px;
      padding: 0 24px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
      span {
        flex: 1;
        font-size: 14px;
        font-family: MicrosoftYaHei, Helvetica, Arial, sans-serif !important;
        color: rgba(0, 0, 0, 0.85);
      }
      img {
        width: 16px;
        height: 16px;
        cursor: pointer;
      }
    }
    .form {
      padding: 0 50px;
      margin-top: 4px;
      &_item {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        margin-top: 20px;
        span {
          width: 80px;
          margin-top: 8px;
          font-size: 14px;
          font-family: MicrosoftYaHei, Helvetica, Arial, sans-serif !important;
          text-align: right;
          color: rgba(0, 0, 0, 0.85);
        }
        input,
        textarea {
          width: 1500px;
          border: 1px solid #cbd5dd;
          border-radius: 5px;
          outline: none;
          font-size: 14px;
        }
        input {
          height: 96px;
          padding: 0 10px;
          word-break: normal;
        }

        textarea {
          height: 680px;
          padding: 10px;
          resize: none;
        }
        input::-webkit-input-placeholder,
        textarea::-webkit-input-placeholder {
          font-weight: 400;
          // 这里写placeholder的样式
          font-size: 14px;
          font-family: PingFangSC-Regular, PingFang SC, Helvetica, Arial, sans-serif !important;
          color: rgba(0, 0, 0, 0.25);
        }
      }
    }
  }
}
</style>
